<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/11/2
  Time: 10:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>我的订单模块</title>
    <link href="${pageContext.request.contextPath}/layui/css/layui.css" rel="stylesheet" />
    <script src="${pageContext.request.contextPath}/layui/layui.js"></script>
    <script src="${pageContext.request.contextPath}/js/jquery-3.3.1.min.js"></script>
    <style>
        .address-right{
            width: 850px;
            height: 600px;
            margin-top: 10px;
            margin-left: 10px;
            margin-bottom: 10px;
            border: 1px solid black;
            float: left;
        }
        .address-right-head{
            height: 40px;
            width: 850px;
            margin-top: 10px;
            margin-left: 10px;
            /* border: 1px solid black; */
            border-collapse: collapse;

        }
        .address-right-head4{
            margin-top: 5px;
            width: 850px;
            margin-left: 10px;
            border-bottom: 2px solid orange;

        }
        .address-right-head3{
            width: 100px;
            height: 30px;
            margin-left: 10px;
            background-color: #ef771f;
            color: white;
            line-height: 30px;
            text-align: center;
            font-size: 16px;

        }
        .address-font{
            color: orange;
        }
        .header-bottom-search{
            padding-left: 350px;
        }
        .Myorder{
            width: 850px;
            height: 310px;
            margin-top: 30px;
            margin-left: 10px;
            margin-bottom: 10px;
            border: 1px solid #F6F6F6;
            border-collapse: collapse;
        }
        .Myorder-a{
            margin-top: 0;
        }
        .Myorder-a,.Myorder-b{
            height: 44px;
            line-height: 44px;
            text-align: center;
            border-bottom: 1px solid #848484;
        }
        .Myorder-a{
            background-color: #FFB800;
            font-weight: bold;
        }
        .order-num{
            color: #FF5722;
        }
        .Myorder-c{
            height: 50px;
            line-height: 50px;
        }
    </style>
</head>
<body>

<!-- 我的订单局部jsp -->
<table calss="address-right">
    <tr>
        <td>
            <table class="address-right-head">
                <tr class="address-right-head1">
                    <td class="address-right-head2">
                        <div class="address-right-head3">
                            我的订单
                        </div>
                        <div class="address-right-head4">
                        </div>
                    </td>
                </tr>
            </table>
        </td>
    </tr>

</table>
<div class="layui-container Myorder" style=" width: 850px;
            height: 220px;
            margin-top: 30px;
            margin-left: 580px;
            margin-bottom: 10px;
            border: 1px solid #848484;
            border-collapse: collapse;">
    <div class=" Myorder-a">
        <div class="layui-col-md3">订单编号</div>
        <div class="layui-col-md3">下单日期</div>
        <div class="layui-col-md6">
            <div class="layui-row">
                <div class="layui-col-md3">收货人</div>
                <div class="layui-col-md3">支付方式</div>
                <div class="layui-col-md3">总金额</div>
                <div class="layui-col-md3">订单状态</div>
            </div>
        </div>
    </div>
    <c:forEach items="${orderList.list}" var="order">
    <div class=" Myorder-b">
        <div class="layui-col-md3 order-num"><a href="${pageContext.request.contextPath}/personal/orderDetail?orderid=${order.id}"  style="color: red">${order.orderno}</a></div>
        <div class="layui-col-md3">${order.ordertime}</div>
        <div class="layui-col-md6">
            <div class="layui-row">
                <div class="layui-col-md3">${order.accept}</div>
                <div class="layui-col-md3">${order.paytype}</div>
                <div class="layui-col-md3">${order.money}</div>
                <div class="layui-col-md3">${order.status}</div>
            </div>
        </div>
    </div>
    </c:forEach>

    <div class=" Myorder-c">
        <div class="layui-col-md7">&nbsp;</div>
        <div class="layui-col-md5">
            <button class="layui-btn  layui-btn-sm layui-btn-primary layui-border-blue" onclick="showOrderPage(1)">首页</button>
<c:forEach begin="1" end="${orderList.pages}" var="nums">
            <button class="layui-btn layui-btn-xs  layui-btn-danger" onclick="showOrderPage(${nums})" >${nums}</button>
</c:forEach>
            <button class="layui-btn  layui-btn-sm layui-btn-primary layui-border-blue" onclick="showOrderPage(${orderList.pages})">尾页</button>
            <button class="layui-btn  layui-btn-sm layui-btn-primary layui-border-black">当前第${orderList.pageNum}页/共${orderList.pages}页</button>
        </div>
    </div>
</div>
</body>
<script>
    function showOrderPage(obj) {
        location.href="${pageContext.request.contextPath}/personal/orderShowPage?num="+obj;
    }
</script>
</html>
